<template>
    <div class="s-relation" :style="{right:right+'px',bottom:bottom+'px'}">
      <div class="s-relation-item">
        <div class="item-content">
          <el-card shadow="hover">
              <div class="s-margin-top-10 s-margin-bottom-10 s-font-size-22 s-font-weight-700">咨询服务热线</div>
              <div class="s-margin-top-10 s-margin-bottom-10 s-font-size-20 s-font-weight-600">029-63077358</div>
          </el-card>
        </div>
        <div class="item-icon phone-b">
          <i class="iconfont icon-iconphone s-font-size-28"></i>
        </div>
      </div>
      <div class="s-relation-item">
        <div class="item-content">
          <el-card shadow="hover">
                <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=197993804,1514615521&fm=26&gp=0.jpg" alt="" class="s-width-100 s-height-100"/>
              <div class="s-font-size-14 s-text-center">扫一扫添加微信咨询</div>
          </el-card>
        </div>
        <div class="item-icon">
          <i class="iconfont icon-weixin4 s-font-size-28"></i>
        </div>
      </div>
      <div class="s-relation-item">
        <div class="item-content">
          <el-card shadow="hover">
            <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=197993804,1514615521&fm=26&gp=0.jpg" alt="" class="s-width-100 s-height-100"/>
            <div class="s-font-size-14 s-text-center">扫一扫添加公众号咨询</div>
          </el-card>
        </div>
        <div class="item-icon">
          <i class="iconfont icon-erweima  s-font-size-28"></i>
        </div>
      </div>
    </div>
</template>

<script lang="ts">
  // 回到顶部插件
import {Vue, Component, Prop} from "vue-property-decorator"
@Component({})
export default class SRelation extends Vue{
  //控制其显示位置, 距离页面右边距
  @Prop({
    type:Number,
    default:(()=>{
      return 40
    })
  }) readonly right!:number
  //控制其显示位置, 距离页面底部距离
  @Prop({
    type:Number,
    default:(()=>{
      return 100
    })
  }) readonly bottom!:number
}
</script>

<style lang="scss" scoped>
@import "s-relation.scss";
</style>
